package xyz.ddlnt.serviceusrclient.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import xyz.ddlnt.commonutil.result.Result;
import xyz.ddlnt.model.dto.PageDTO;
import xyz.ddlnt.model.vo.PostRecordVO;

import java.util.List;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/25 22:07
 */
//@FeignClient(name = "service-usr", url = "http://yixuewang-service-usr:9015", path = "/post_history_record")
//@FeignClient(name = "service-usr", url = "http://localhost:9005", path = "/post_history_record")
@FeignClient(value = "service-usr", path = "/post_history_record")
public interface PostHistoryRecordFeignClient {
    /**
     * 获取帖子浏览历史
     * @param pageDTO
     * @return
     */
    @PostMapping("/getPostHistoryRecordList")
    Result<List<PostRecordVO>> getPostHistoryRecordList(@RequestBody PageDTO pageDTO);

    /**
     * 删除帖子浏览历史
     * @param id
     * @return
     */
    @DeleteMapping("/removeById")
    Result<Boolean> removeById(@RequestParam Long id);
}
